package com.yjd.comm.borrow.enums;

/**
 * <b>description</b>：逾期是否垫付 <br>
 * <b>time</b>：2014-8-22 下午7:14:54 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum BorrowReturnOverdueAdvanceEnum {
	NO(0, "否"), YES(1, "是");
	private Integer value;
	private String description;

	private BorrowReturnOverdueAdvanceEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static BorrowReturnOverdueAdvanceEnum get(Integer value) {
		BorrowReturnOverdueAdvanceEnum[] enums = BorrowReturnOverdueAdvanceEnum
				.values();
		for (BorrowReturnOverdueAdvanceEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		BorrowReturnOverdueAdvanceEnum enum1 = BorrowReturnOverdueAdvanceEnum
				.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
}